package com.qiniu.shortvideo.utils;

import android.os.Environment;

/**
 * 短视频常量类
 */
public class PLConstant {

    // 官方授权
    public static final String TOKEN = "MqF35-H32j1PH8igh-am7aEkduP511g-5-F7j47Z:0gzBOkhm3KsFGbGk2HdKfA4jZp4=:eyJzY29wZSI6InNob3J0LXZpZGVvIiwiZGVhZGxpbmUiOjE2NTA3MTExMDcsInVwaG9zdHMiOlsiaHR0cDovL3VwLXoyLnFpbml1LmNvbSIsImh0dHA6Ly91cGxvYWQtejIucWluaXUuY29tIiwiLUggdXAtejIucWluaXUuY29tIGh0dHA6Ly8xODMuNjAuMjE0LjE5OCJdfQ==";
    public static final String ak = "MqF35-H32j1PH8igh-am7aEkduP511g-5-F7j47Z";
    public static final String DOMAIN = "shortvideo.pdex-service.com";

    // 文件存储地址
    public static final String VIDEO_STORAGE_DIR = Environment.getExternalStorageDirectory() + "/yanyuan/ShortVideo/";
    public static final String RECORD_FILE_PATH = VIDEO_STORAGE_DIR + "record.mp4";
    public static final String EDITED_FILE_PATH = VIDEO_STORAGE_DIR + "edited.mp4";
    public static final String TRIM_FILE_PATH = VIDEO_STORAGE_DIR + "trimmed.mp4";
    public static final String TRANSCODE_FILE_PATH = VIDEO_STORAGE_DIR + "transcoded.mp4";
    public static final String CAPTURED_FRAME_FILE_PATH = VIDEO_STORAGE_DIR + "captured_frame.jpg";
    public static final String GIF_SAVE_PATH = VIDEO_STORAGE_DIR + "generated.gif";
    public static final String SCREEN_RECORD_FILE_PATH = VIDEO_STORAGE_DIR + "screen_record.mp4";
    public static final String COMPOSE_FILE_PATH = VIDEO_STORAGE_DIR + "composed.mp4";
    public static final String IMAGE_COMPOSE_FILE_PATH = VIDEO_STORAGE_DIR + "image_composed.mp4";

    // ===================== 录制相关 ===================================
    public static final String VIDEO_PLAY_PATH = "play_file_path";

    // ===================== 录制相关 ===================================

    // SP存储产量Key
    public static final String PREVIEW_SIZE_RATIO = "PreviewSizeRatio";                     // 展示比例：4:3, 16:9
    public static final String PREVIEW_SIZE_LEVEL = "PreviewSizeLevel";                     // 预览尺寸：480P, 720P，1080P
    public static final String ENCODING_SIZE_LEVEL = "EncodingSizeLevel";                   // 编码尺寸：480x480，960x720
    public static final String ENCODING_BITRATE_LEVEL = "EncodingBitrateLevel";             // 编码码率：500Kbps，800Kbps
    public static final String RECORD_ORIENTATION_LANDSCAPE = "RecordOrientationPortrait";  // 录制方向：竖屏, 横屏
    public static final String RECORD_SPEED_LEVEL = "RecordSpeedLevel";                     // 倍数拍摄：0.5x，1.0x，2.0x
}
